#include<stdio.h>
int isPrime(int n)
{
	if (n <= 1)
	{
		return 0;
	}
	for (int i = 2; i <= n / 2; i++)
	{
		if (n % i == 0)
		{
			return 0;
		}
	}
	return 1;
}
int main()
{
	int a;
	printf("Please enter an integer between 800 and 1000:");
	scanf("%d", &a) ;
	if (a <= 1000 && a >= 800)
	{
		if (isPrime(a))
		{
			printf("It is a prime.\n");
		}
		else
		{
			printf("It is not a prime.\n");
		}


	}
	else
	{
		printf("The number is not between 800 and 1000\n");
	}

}
